package com.diankangwo.api.dao;

import com.diankangwo.api.entity.TokenEntity;
import com.diankangwo.sys.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/** 用户Token
 * Created by wuye on 2017/9/5.
 */
@Mapper
@Repository
public interface TokenDao extends BaseDao<TokenEntity>{
    TokenEntity queryByUserId(Long userId);

    TokenEntity queryByToken(String token);
}
